﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" x:Class="TheGameDatabaseTool.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid x:Name="LayoutRoot">
    	<VisualStateManager.VisualStateGroups>
    		<VisualStateGroup x:Name="States" ei:ExtendedVisualStateManager.UseFluidLayout="True">
    			<VisualStateGroup.Transitions>
    				<VisualTransition GeneratedDuration="0:0:0.25"/>
    			</VisualStateGroup.Transitions>
    			<VisualState x:Name="Idle"/>
    			<VisualState x:Name="Busy">
    				<Storyboard>
    					<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="grid">
    						<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
    					</ObjectAnimationUsingKeyFrames>
    					<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(BlurEffect.Radius)" Storyboard.TargetName="grid1">
    						<EasingDoubleKeyFrame KeyTime="0" Value="15"/>
    					</DoubleAnimationUsingKeyFrames>
    				</Storyboard>
    			</VisualState>
    		</VisualStateGroup>
    	</VisualStateManager.VisualStateGroups>
    	<VisualStateManager.CustomVisualStateManager>
    		<ei:ExtendedVisualStateManager/>
    	</VisualStateManager.CustomVisualStateManager>
        <Grid x:Name="grid1">
        	<Grid.Effect>
        		<BlurEffect Radius="1" RenderingBias="Quality"/>
        	</Grid.Effect>
        	<Grid.RowDefinitions>
        		<RowDefinition Height="0.333*"/>
        		<RowDefinition Height="0.333*"/>
        		<RowDefinition Height="0.333*"/>
        	</Grid.RowDefinitions>
            <Button Content="Update database" x:Name="btnUpdateDB" Click="BtnUpdateDbClick" HorizontalAlignment="Center" VerticalAlignment="Bottom" Width="100" Margin="0,0,0,5" />
            <Button Content="Wipe database" x:Name="btnWipeDB" Click="BtnWipeDbClick" VerticalAlignment="Center" HorizontalAlignment="Center" Width="100" Grid.Row="1" Margin="0,5,0,5" />
            <Button Content="Run migration script" x:Name="btnMigration" Click="BtnMigrationClick" VerticalAlignment="Top" HorizontalAlignment="Center" Width="150" Grid.Row="2" Margin="0,5,0,0"/>
        </Grid>
        <Grid x:Name="grid" Background="#3F000000" Visibility="Hidden">
        	<ProgressBar Height="20" VerticalAlignment="Center" Margin="20,0" IsIndeterminate="True"/>
        </Grid>
    </Grid>
</Window>
